//package com.itheima.client;
//
//import com.itheima.client.fallback.UserFeignClientFallback;
//import org.springframework.cloud.openfeign.FeignClient;
//import org.springframework.util.StringUtils;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestMapping;
//
//import java.util.Map;
//
////代表当前是一个feign客户端 参数代表要调用微服务名称
//@FeignClient(value = "user-service",fallback = UserFeignClientFallback.class)
//public interface UserFeignClient {
//
//    @RequestMapping("/user/{id}")
//    public Map findById(@PathVariable("id") String id);
//
//}
